import request from '@/utils/request'

// 获取搜索联想建议
export const getSearchSuggest = (q) => {
  return request({
    method: 'GET',
    url: '/search/suggest',
    params: {
      q
    }
  })
}

// 获取搜索结果
export const getSearchResults = (params) => {
  return request({
    method: 'GET',
    url: '/search/results',
    params
  })
}

// 获取登陆用户搜索历史
export const getSearchHistory = () => {
  return request({
    method: 'GET',
    url: '/search/history'
  })
}

// 删除单个历史记录

// 删除全部历史记录
